<template>  
    <header>
        <i class="icon-arrow-left" @click="back"></i>
        <slot></slot>
    </header>
</template>
<script>
    export default{
        methods:{
             back(){
           
           this.$router.go(-1)
        }
    }
    }
</script>
<style lang="" scoped>
     header{
        height:44px;
        background:#333;
        position:fixed;
        left:0;
        right:0;
        top:0;
        z-index:100;
        padding:0 15px;
        color:#fff;
        line-height:44px;
        font-size:16px;
        
    }
    header i{
        color:#999;
    }
    .title{
        margin-left:10px;
        display:inline-block;
    }

</style>